package com.jiawa.train.common.exception;

public class BusinessException extends RuntimeException {

    private BusinessExceptionEnum  anEnum;

    public BusinessException(BusinessExceptionEnum anEnum) {
        this.anEnum = anEnum;
    }

    public BusinessExceptionEnum getAnEnum() {
        return anEnum;
    }

    public void setAnEnum(BusinessExceptionEnum anEnum) {
        this.anEnum = anEnum;
    }

    /**
     * 禁用堆栈追踪
     */
    public Throwable fillInStackTrace()
    {
        return this;
    }

}
